import java.io.*;

public class WhyException {
    public static void main(String[] args) throws IOException {
//       test01();
//        test02();
//        test03();
        test05();
    }
    public static void test01() {
        int [] a  = new int[10];
        a[10] =  1;
    }

    public static void test02() {
        System.out.println(10 / 0);
    }

    public static void test03() {
        Object b =  null;
        System.out.println(b.toString());
    }

    public static void test04() {
        System.out.println();
    }

    public static void test05() throws IOException {
        InputStream inputStream = new BufferedInputStream(new FileInputStream(""));
        inputStream.close();
    }
 }
